﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Reflection;
using plusMathLib; 
namespace WindowsFormsApplication1
{
    
    public partial class MainGui : Form
    {
        public MainGui()
        {
            InitializeComponent();
        }

        private void CalBtn_Click(object sender, EventArgs e)
        {
    
            Type type = typeof(IPlus);
            IPlus pPlus;
            if (type != null)
            {
                pPlus = (IPlus)Activator.CreateInstance(type);
                pPlus.setFirtNumber(1);
                pPlus.setSecondNumber(2);
                long nLong = pPlus.DoPlus();
            }
            
        }
    }
}
